package com.soft.javase.day15.proxy;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/5/27
 */
public class Test {
    public static void main(String[] args) {
        Calculator target = new CalculatorImpl();
        Calculator proxy = new CalculatorLogImpl(target).getProxy();
        System.out.println("加法结果: " + proxy.add(5, 3));
        System.out.println("减法结果: " + proxy.sub(5, 3));
        System.out.println("乘法结果: " + proxy.mul(5, 3));
        System.out.println("除法结果: " + proxy.div(6, 3));
    }
}
